IF EXIST ".svn" EXIT
IF /i "%CD%" EQU "Y:\cms" EXIT

COPY /Y ..\cms\update_cms.cmd update_cms.cmd
COPY /Y ..\cms\config\core.php config\core.php
COPY /Y ..\cms\config\bootstrap.php config\bootstrap.php
COPY /Y ..\cms\app_model.php app_model.php
COPY /Y ..\cms\app_controller.php app_controller.php
COPY /Y ..\cms\app_helper.php app_helper.php
COPY /Y ..\cms\app_error.php app_error.php

RMDIR /S /Q plugins\position
XCOPY /S /C /I /Y ..\cms\plugins\position plugins\position

RMDIR /S /Q plugins\routines
XCOPY /S /C /I /Y ..\cms\plugins\routines plugins\routines

RMDIR /S /Q plugins\schema
XCOPY /S /C /I /Y ..\cms\plugins\schema plugins\schema

RMDIR /S /Q plugins\admin
XCOPY /S /C /I /Y ..\cms\plugins\admin plugins\admin

RMDIR /S /Q plugins\debug_kit
XCOPY /S /C /I /Y ..\cms\plugins\debug_kit plugins\debug_kit